package ke24.ga;

/**
 * Represents a package with a specific id and weight.
 *
 * @author tan
 */
public class Package {

  private double weight;
  private int id;

  public Package(int id, double weight) {
    this.weight = weight;
    this.id = id;
  }

  public double getWeight() {
    return weight;
  }
  
  public int getId() {
      return id;
  }
  public static boolean isBig(int packageID) {
      return packageID <= 16;
  }
  
  /*
   * returns true if the package is a small package and false otherwise
   */
  public static boolean isSmall(int packageID) {
      return !isBig(packageID);
  }
  
  
}
